package com.syaccp.controller;

import com.syaccp.request.BankRemitAddRequest;
import com.syaccp.service.BankRemitService;
import com.syaccp.utils.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Api(tags = "客户充值")
@RestController
@RequestMapping("/api/bankRemit")
public class BankRemitController {


    @Resource
    private BankRemitService bankRemitService;


    @PostMapping("/topUp")
    @ApiOperation(value = "充值")
    public Result topUp(@RequestBody BankRemitAddRequest bankRemitAddRequest){

        return bankRemitService.topUp(bankRemitAddRequest);
    }
}
